﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MedicalManagementSystem.ViewModels.Reports.StatisticsReportModel>" %>

<%@ Import Namespace="MedicalManagementSystem.ViewModels.Reports" %>
<%@ Import Namespace="MedicalManagementSystem.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Государственная статистическая отчетность
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    

<table id="toggle_table">
    <tr>
    <td valign="top" width="100px" style="border-right: 2px solid #E8EEF4">
        <%=MedicalManagementSystem.Utils.Menu.getMenu(Html, "anal") %>  
    </td>
    <td valign="top">        
   
        <h2>Государственная статистическая отчетность</h2>           
        <% if (ViewData.ContainsKey("error")){ %>
            <div style="color:red"><%=ViewData["error"] %></div>
        <% } %>         
        <form method="post" action="">
		<table>
            <tr>
                <td>Начальная дата:</td>
                <td>           
                    <%= Html.TextBox(Model.BeginDateProperty, Model.BeginDate.ToShortDateString(), new { @readonly="readonly", @autocomplete="off" })%>
                </td>
            </tr>
            <tr>
                <td>Конечная дата:</td>
                <td>            
                    <%= Html.TextBox(Model.EndDateProperty, Model.EndDate.ToShortDateString(), new { @readonly = "readonly", @autocomplete = "off" })%>
                </td>
            </tr>
        </table>
	<input type="submit" value="Отчет" />
        </form>    
    </td>
    </tr>
    </table>
    <script type="text/javascript">
        $(document).ready(function() {
            $("#<%= Model.BeginDateProperty %>").datepicker({
                changeMonth: true,
                changeYear: true
            }, $.datepicker.regional["ru"]);

            $("#<%= Model.EndDateProperty %>").datepicker({
                changeMonth: true,
                changeYear: true
            }, $.datepicker.regional["ru"]);
        });
    </script>
</asp:Content>
